Package com.apps.test

Source Code of com.apps.test.GoogleLocationServiceTest

/*
* @author Cole Gehlen
*/


package com.apps.test;

import static org.junit.Assert.*;

import org.junit.Test;

import com.apps.services.GoogleLocationService;
import com.apps.services.factory.GoogleLocationServiceFactory;

public class GoogleLocationServiceTest {

  @Test
  public void test() { 
    GoogleLocationService gls = GoogleLocationServiceFactory.getGoogleLocationService();
   
    String[] coords = gls.getLatLong("6245 Agronomy Road V6T 1Z4");
    assertTrue(coords[0].equals("49.2601031") && coords[1].equals("-123.2505252"));
   
  }

}
TOP

Related Classes of com.apps.test.GoogleLocationServiceTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.